#!/bin/bash

#. "${HOME}/.bashrc"

filename="${PATH_MAIN_REPO_FN_DIR}/dir_mm_dogit_/_mm_dogit_/_fn/mm_dogit_set_5.sh"

echo -e "${HLIGHT}---start file://$filename ---${NORMAL}" # start file

idir=$(pwd)

# cd "$(prs_f -d $filename)" || qq_exit "$(prs_f -d $filename) not found"

# garg_ $(prs_f -n $filename) $@ 1>/dev/null

mm_dogit_set_5() {
    echo -e "${CYAN}--- ${FUNCNAME[0]}() $* ---${NORMAL}" #started functions

    garg_ ${FUNCNAME[0]} $@ 1>/dev/null

    d_name=$(dirname "${PATH_MAIN_REPO_FN_DIR}/dir_mm_dogit_/_mm_dogit_/_fn/mm_dogit_set_5.sh")

    if [ "-h" == "$1" ]; then
        echo -e "${CYAN} ${FUNCNAME[0]}() help: 
            MAIN: 
            NAME: ${FUNCNAME[0]}()
            ARGS: 
            FLOW:
    
            ${NORMAL}"
        return 0
    fi

    if [ "_man" == "$1" ]; then
        edit_ "$d_name/${FUNCNAME[0]}".man
        return 0
    fi

    if [ "_go" == "$1" ]; then
        edit_ "$d_name/${FUNCNAME[0]}".sh
        return 0
    fi

    if [ "_lst" == "$1" ]; then
        edit_ "$d_name/${FUNCNAME[0]}".lst
        return 0
    fi

    if [ "_test" == "$1" ]; then
        ${FUNCNAME[0]}test
        return 0
    fi

    # amount_arg $# 1 1

    tst_ -echo

    plt_pause "continue?: bcp_before_gitpush_plt + mm_dogit_ 5"

    echo -e "${GREEN}--- bcp_before_gitpush_plt file ---${NORMAL}" #sistem info mesage

    bcp_before_gitpush_plt="${PLT_PATH}/.d/.exec.d/mm_dogit_/1_bcp_before_gitpush_plt.sh"

    if [ -f "${bcp_before_gitpush_plt}" ]; then
        echo -e "${BLUE}--- . ${bcp_before_gitpush_plt} ---${NORMAL}" #sistem info mesage
        . "${bcp_before_gitpush_plt}"
    else
        plt_info "NOTFILE : ${bcp_before_gitpush_plt} :: return 1"
        return 1
    fi

    echo -e "${GREEN}--- mm_dogit_ 4 ---${NORMAL}" #sistem info mesage
    mm_dogit_ 5

}

cd "$idir"

unset filename
